{% extends 'index.html' %}
{% load staticfiles %}
{% block nav-head %}
	{{ block.super }}
{% endblock %}
{% block nav-top %}
       {{ block.super }}
{% endblock %}
{% block nav-side %}
	{{ block.super }}
{% endblock %}
{% block content %}
        <div id="page-wrapper">
            <div class="row">
                <div class="col-lg-12"> <br /></div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">人员信息</div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <div class="dataTable_wrapper">
                                <table class="table table-striped table-bordered table-hover table-condensed" id="dataTables-example">
                                    <thead>
                                        <tr>
                                            <th width="5%">ID</th>
											<th width="10%">姓名</th>
											<th width="10%">性别</th>
											<th width="10%">部门</th>
											<th width="25%">公司</th>
                                            <th width="10%">联系方式</th>
                                            <th width="30%">备注</th>
                                        </tr>
                                    </thead>
                                    <tbody>
                                        {% for person in person_lists %}
                                        <tr class="odd gradeX">
                                            <td class="center">{{person.id}}</td>
                                            <td class="center">{{person.name}}</td>
                                            <td class="center">{% if person.sex == True %}男{% elif person.sex == False %}女{% else %}未知{% endif %}</td>
                                            <td class="center">{{person.dept}}</td>
                                            <td class="center">{{person.company}}</td>
                                            <td class="center">{{person.contact}}</td>
                                            <td class="center">{{person.comment}}</td>
                                        </tr>
                                        {% endfor %}
                                    </tbody>
                                </table>
                            </div>
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
        </div>
        <!-- /#page-wrapper -->
{% endblock %}
{% block theme %}
	<!-- Custom Theme JavaScript -->
    <script src="{% static 'js/sb-admin-2.js' %}"></script>
	 <!-- DataTables JavaScript -->
    <script src="{% static 'js/jquery.dataTables.min.js' %}"></script>
    <script src="{% static 'js/dataTables.bootstrap.min.js' %}"></script>

    <!-- Page-Level Demo Scripts - Tables - Use for reference -->
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
                responsive: true
        });
    });
    </script>
{% endblock %}
